Package com.cisco.pt.ipc.system.impl
Class ScriptValueImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.system.impl.ScriptValueImpl
- All Implemented Interfaces:
IPCObject,ScriptValue
Information provided by the PKI file:
\class ScriptValue
\brief ScriptValue provides functionality to convert this script Engines values to basic types.
\example appWindow().getActiveFile().getScriptEngine().createScriptValueInt(1)
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionScriptValueImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisArray()Information provided by the PKI file:booleanInformation provided by the PKI file:booleanisError()Information provided by the PKI file:booleanInformation provided by the PKI file:booleanisNull()Information provided by the PKI file:booleanisNumber()Information provided by the PKI file:booleanisObject()Information provided by the PKI file:booleanisString()Information provided by the PKI file:booleanInformation provided by the PKI file:booleanisValid()Information provided by the PKI file:Information provided by the PKI file:booleanInformation provided by the PKI file:inttoInt32()Information provided by the PKI file:toString()Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
ScriptValueImpl
public ScriptValueImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
isBoolean
public boolean isBoolean()Information provided by the PKI file:
\brief Returns true if this ScriptValue is a boolean, otherwise false. \return bool, true if this ScriptValue is a boolean, otherwise false.- Specified by:
isBooleanin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
isFunction
public boolean isFunction()Information provided by the PKI file:
\brief Returns true if this ScriptValue is a function, otherwise false. \return bool, true if this ScriptValue is a function, otherwise false.- Specified by:
isFunctionin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
isNull
public boolean isNull()Information provided by the PKI file:
\brief Returns true if this ScriptValue is null, otherwise false. \return bool, true if this ScriptValue is null, otherwise false.- Specified by:
isNullin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
isNumber
public boolean isNumber()Information provided by the PKI file:
\brief Returns true if this ScriptValue is a number, otherwise false. \return bool, true if this ScriptValue is a number, otherwise false.- Specified by:
isNumberin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
isObject
public boolean isObject()Information provided by the PKI file:
\brief Returns true if this ScriptValue is an object, otherwise false. \return bool, true if this ScriptValue is an object, otherwise false.- Specified by:
isObjectin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
isUndefined
public boolean isUndefined()Information provided by the PKI file:
\brief Returns true if this ScriptValue is undefined, otherwise false. \return bool, true if this ScriptValue is undefined, otherwise false.- Specified by:
isUndefinedin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
isValid
public boolean isValid()Information provided by the PKI file:
\brief Returns true if this ScriptValue is valid, otherwise false. \return bool, true if this ScriptValue is valid, otherwise false.- Specified by:
isValidin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
isString
public boolean isString()Information provided by the PKI file:
\brief Returns true if this ScriptValue is a string, otherwise false. \return bool, true if this ScriptValue is a string, otherwise false.- Specified by:
isStringin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
isError
public boolean isError()Information provided by the PKI file:
\brief Returns true if this ScriptValue is an error, otherwise false. \return bool, true if this ScriptValue is an error, otherwise false.- Specified by:
isErrorin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
isArray
public boolean isArray()Information provided by the PKI file:
\brief Returns true if this ScriptValue is an array, otherwise false. \return bool, true if this ScriptValue is an array, otherwise false.- Specified by:
isArrayin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
property
Information provided by the PKI file:
\brief Returns the specified property. \param name, the name of the property of interest. \return ScriptValue, the ScriptValue object of the specified property.- Specified by:
propertyin interfaceScriptValue- Parameters:
name- Takes in a parameter of name- Returns:
- ScriptValue Returns a ScriptValue
-
toBoolean
public boolean toBoolean()Information provided by the PKI file:
\brief Converts the ScriptValue to a boolean. \return bool, the value of the converted ScriptValue.- Specified by:
toBooleanin interfaceScriptValue- Returns:
- boolean Returns a boolean
-
toInt32
public int toInt32()Information provided by the PKI file:
\brief Converts the ScriptValue to an integer. \return int, the value of the converted ScriptValue.- Specified by:
toInt32in interfaceScriptValue- Returns:
- int Returns a int
-
toString
Information provided by the PKI file:
\brief Converts the ScriptValue to a QString. \return QString, the value of the converted ScriptValue.- Specified by:
toStringin interfaceScriptValue- Overrides:
toStringin classObject- Returns:
- String Returns a String
-